import Vue from 'vue'
import Router from 'vue-router'
import Home from'../view/home'
import Employee from'../view/employee'
import Index from'../view/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    // {
    //   path: '/',
    //   name: 'index',
    //   component: Index,
    // },
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[
        {
          path: '/index',
          name: 'index',
          component: Index,
        },
        {
          path: '/employee',
          name: 'employee',
          component: Employee,
        }
      ]

      
    }
  ]
})
